package com.zx.zxojbackendserviceclient;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zx.zxojbackendmodel.dto.question.QuestionQueryRequest;
import com.zx.zxojbackendmodel.entity.Question;
import com.zx.zxojbackendmodel.entity.QuestionSubmit;
import com.zx.zxojbackendmodel.vo.QuestionVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


import javax.servlet.http.HttpServletRequest;

/**
* @author ZX
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2025-02-04 21:44:38
*/
@FeignClient(name = "zxoj-backend-question", path = "/api/question/inner")
public interface QuestionFeignClient{
    @GetMapping("/get/id")
    public Question getQuestionById(@RequestParam("questionId") Long questionId);

    @GetMapping("/questionSubmit/get/id")
    public QuestionSubmit getQuestionSubmitById(@RequestParam("questionSubmitId") Long questionSubmitId);

    @PostMapping("/questionSubmit/update")
    public void updateById(@RequestBody QuestionSubmit questionSubmitUpdate);
}
